package com.nineclock.api.approve;

import com.nineclock.approve.dto.ApproveDefinitionResultDto;
import com.nineclock.approve.dto.ApproveDefinitionSaveDto;
import com.nineclock.approve.dto.ApproveGroupDefinitionDto;
import com.nineclock.common.entity.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.List;

@Api("审批中心管理")
public interface ApproveDefinitionControllerApi {
    @ApiOperation("流程定义:获取序列")
    public Result<String> seq();

    @ApiOperation("查询列表")
    public Result<List<ApproveGroupDefinitionDto>> queryDefinitionGroup();

    @ApiOperation("新增/修改")
    public Result saveApproveDefinition(ApproveDefinitionSaveDto approveDefinitionSaveDto);

    @ApiOperation("根据ID查询回显数据")
    public Result<ApproveDefinitionResultDto> queryDefinitionById(String id);
}
